package org.edith.shiro.enums;

/**
 * 返回错误信息枚举类
 */
public enum ResponseEnum {
    /**
     * 操作成功
     */
    SUCCESS("SUCCESS","操作成功"),
    /**
     * 操作失败
     */
    FAILURE("FAILURE","操作失败"),
    /**
     * 用户名或密码输入错误
     */
    INCORRECT_USERNAME_OR_PASSWORD("INCORRECT_USERNAME_OR_PASSWORD","用户名或密码输入错误"),
    /**
     * 无访问权限
     */
    NO_ACCESS("NO_ACCESS","无访问权限"),
    /**
     * 用户未登录
     */
    NO_LOGIN("NO_LOGIN","用户未登录"),
    /**
     * 账户被锁定
     */
    ACCOUNT_LOCKED("ACCOUNT_LOCKED","账户被锁定"),

    /**
     * 系统内部错误
     */
    SYS_ERROR("SYS_ERROR","系统内部错误"),
    ;
    private String code;
    private String message;

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
